package org.example.bootmybatisplus004.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("test_enum")
public class TestEnum implements Serializable {
    @TableId(value = "user_id",type = IdType.AUTO)
    private int userId;
    private String userName;
    private String userSex;
    private Timestamp createAt;
    private int userStatus;
    private String info;
    @TableField(exist = false)  // 该字段在表中不存在
    private String userUser;
}
